# -*- coding: utf-8 -*-
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer

chatbot = ChatBot("ChineseChatBot")
trainer = ChatterBotCorpusTrainer(chatbot)
# 使用中文语料库训练它
#trainer.train("chatterbot.corpus.english")
trainer.train("chatterbot.corpus.hyundai_carbot_chinese")
trainer.train("chatterbot.corpus.english")
# 开始对话
while True:
    request=input('我:')
# Get a response to the input text 'I would like to book a flight.'
    response = chatbot.get_response(request)
    print('CAR Bot: ',response)
    #print('CAR Bot--> responseCarBot: ',response)